﻿<%@ Page Language="C#" MasterPageFile="~/Home/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Home_Default" Title="Welcome to IT" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <br />
             <table align=center width=100%>
                <tr>
                 <td colspan=8 bgColor=#ebecf0 style="width: 20%; height: 27px;" align="center">
                    <FONT style="FONT-SIZE: 14px" color=Blue>
                    <B>&nbsp;&nbsp;Nhập thông tin cần tìm vào các ô bên dưới</B>
                     </FONT>
                     </td>
                </tr>
                
                <tr>
                    <TD bgColor=#ebecf0 style="width: 20%; height: 27px;" align="right">
                                    Thông tin cần tìm
                     </TD>
                                <TD bgColor=#ebecf0 style="width: 65%; height: 27px;" align="left">
                                    <asp:TextBox ID="txtsearch" runat="server" Width="322px" ></asp:TextBox>
                                    </TD>
                                
                </tr>
                  <TR>
                                <TD bgColor=#ebecf0 style="width: 20%; height: 22px;" align="right">
                                    Loại cần tìm</TD>
                                <TD bgColor=#ebecf0 style="width: 65%; height: 22px;" align="left">
                                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="sql_dm"
                                        DataTextField="DienGiai" DataValueField="ID" Width="150px">
                                    </asp:DropDownList><asp:SqlDataSource ID="sql_dm" runat="server" ConnectionString="<%$ ConnectionStrings:db_connection %>"
                                        DeleteCommand="DELETE FROM [DM001] WHERE [ID] = @ID" InsertCommand="INSERT INTO [DM001] ([DienGiai]) VALUES (@DienGiai)"
                                        SelectCommand="SELECT * FROM [DM001] ORDER BY [DienGiai]" UpdateCommand="UPDATE [DM001] SET [DienGiai] = @DienGiai WHERE [ID] = @ID">
                                        <DeleteParameters>
                                            <asp:Parameter Name="ID" Type="Int32" />
                                        </DeleteParameters>
                                        <UpdateParameters>
                                            <asp:Parameter Name="DienGiai" Type="String" />
                                            <asp:Parameter Name="ID" Type="Int32" />
                                        </UpdateParameters>
                                        <InsertParameters>
                                            <asp:Parameter Name="DienGiai" Type="String" />
                                        </InsertParameters>
                                    </asp:SqlDataSource>
                                    &nbsp;
                                    
                                    </TD>
                                
                               </TR>
                               <tr>
                               
                                
                                    <TD bgColor=#ebecf0 style="width: 20%; height: 13px;" align="right">
                                    Nhóm cần tìm</TD>
                                <TD bgColor=#ebecf0 style="width: 65%; height: 13px;" align="left">
                                    <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="sql_sp" DataTextField="DienGiai"
                                        DataValueField="ID" Width="150px">
                                    </asp:DropDownList><asp:SqlDataSource ID="sql_sp" runat="server" ConnectionString="<%$ ConnectionStrings:db_connection %>"
                                        DeleteCommand="DELETE FROM [DM002] WHERE [ID] = @ID" InsertCommand="INSERT INTO [DM002] ([DienGiai]) VALUES (@DienGiai)"
                                        SelectCommand="SELECT [ID], [DienGiai] FROM [DM002] WHERE ([ID_DM001] = @ID_DM001) ORDER BY [DienGiai]"
                                        UpdateCommand="UPDATE [DM002] SET [DienGiai] = @DienGiai WHERE [ID] = @ID">
                                        <DeleteParameters>
                                            <asp:Parameter Name="ID" Type="Int32" />
                                        </DeleteParameters>
                                        <UpdateParameters>
                                            <asp:Parameter Name="DienGiai" Type="String" />
                                            <asp:Parameter Name="ID" Type="Int32" />
                                        </UpdateParameters>
                                        <SelectParameters>
                                            <asp:ControlParameter ControlID="DropDownList1" Name="ID_DM001" PropertyName="SelectedValue"
                                                Type="Int32" />
                                        </SelectParameters>
                                        <InsertParameters>
                                            <asp:Parameter Name="DienGiai" Type="String" />
                                        </InsertParameters>
                                    </asp:SqlDataSource>
                                </td>
                               
                               </tr>
                               <tr>
                                     <td bgColor=#ebecf0 style="width: 20%; height: 27px;" align="center">
                                        <FONT style="FONT-SIZE: 14px" color=Blue>
                                        
                                         </FONT>
                                         </td>
                                          <td bgColor=#ebecf0 style="width: 20%; height: 27px;" align="left">
                                        <FONT style="FONT-SIZE: 14px" color=Blue>
                                            <asp:Button ID="Bt_tim" runat="server" Text="   Tìm   " />
                                        
                                         </FONT>
                                         </td>
                               </tr>
                               
                
             </table>
             
             
             
             <table align=center cellpadding=1 cellspacing=2 border=0 width=100% height=50px bgcolor=Gainsboro>
                <tr>
                    <td>
                    <table width=90%>
                        <tr>
                        <td width="80%" 
                            valign=center nowrap 
                            background=image/bg_title_left.jpg style="BACKGROUND-REPEAT: repeat-y; height: 20px;">&nbsp; <font 
                              color=Blue><b>&gt;&gt;&gt; Sách&lt;&lt;&lt;</b></font></td>                           
                            
                            
                        </tr>
                        <tr>
                            <td>
                                 <asp:DataList ID="Datasach" runat="server" AlternatingItemStyle-VerticalAlign="NotSet" RepeatColumns="1" RepeatDirection="Horizontal" Height="80px">
                                     <ItemTemplate>                      
                        
             
		                             <li><a href="buy.aspx?view=<%#DataBinder.Eval(Container.DataItem, "ID")%>"><b><%#DataBinder.Eval(Container.DataItem, "DienGiai")%></b></a></li>
                    		         
	                          
          
                                  </ItemTemplate> 
                                  <FooterTemplate>
                                  </FooterTemplate> 
                         
                            </asp:DataList>
                   
                            
                            </td>
                        </tr>
                    </table>
                   
                   </td>
                    <td>
                     <table width=100%>
                        <tr>
                        <td width="197" 
                            valign=center nowrap 
                            background=image/bg_title_left.jpg style="BACKGROUND-REPEAT: repeat-y; height: 20px;">&nbsp; <font 
                              color=Blue><b> >>> Quần áo-Giầy dép<<<</b></font></td>                           
                            
                            
                        </tr>
                        <tr>
                            <td>
                                 <asp:DataList ID="DataGiay" runat="server" AlternatingItemStyle-VerticalAlign="NotSet" RepeatColumns="1" RepeatDirection="Horizontal" Height="80px">
                                     <ItemTemplate>                      
                        
             
		                             <li><a href="buy.aspx?view=<%#DataBinder.Eval(Container.DataItem, "ID")%>"><b><%#DataBinder.Eval(Container.DataItem, "DienGiai")%></b></a></li>
                    		         
	                          
          
                                  </ItemTemplate> 
                                  <FooterTemplate>
                                  </FooterTemplate> 
                         
                            </asp:DataList>
                   
                            
                            </td>
                        </tr>
                    </table>                   
                        
                    </td>
                </tr>
                
                
                
                  <tr>
                    <td>
                    <table width=100%>
                        <tr>
                        <td width="197" 
                            valign=center nowrap 
                            background=image/bg_title_left.jpg style="BACKGROUND-REPEAT: repeat-y; height: 20px;">&nbsp; <font 
                              color=Blue><b>&gt;&gt;&gt; Điện thoại&lt;&lt;&lt;</b></font></td>                           
                            
                            
                        </tr>
                        <tr>
                            <td>
                                 <asp:DataList ID="Data_dienthoai" runat="server" AlternatingItemStyle-VerticalAlign="NotSet" RepeatColumns="1" RepeatDirection="Horizontal" Height="80px">
                                     <ItemTemplate>                      
                        
             
		                             <li><a href="buy.aspx?view=<%#DataBinder.Eval(Container.DataItem, "ID")%>"><b><%#DataBinder.Eval(Container.DataItem, "DienGiai")%></b></a></li>
                    		         
	                          
          
                                  </ItemTemplate> 
                                  <FooterTemplate>
                                  </FooterTemplate> 
                         
                            </asp:DataList>
                   
                            
                            </td>
                        </tr>
                    </table>
                   
                   </td>
                    <td>
                     <table width=100%>
                        <tr>
                        <td width="197" 
                            valign=center nowrap 
                            background=image/bg_title_left.jpg style="BACKGROUND-REPEAT: repeat-y; height: 20px;">&nbsp; <font 
                              color=Blue><b> >>> Máy chụp hình<<<</b></font></td>                           
                            
                            
                        </tr>
                        <tr>
                            <td>
                                 <asp:DataList ID="Data_maychuphinh" runat="server" AlternatingItemStyle-VerticalAlign="NotSet" RepeatColumns="1" RepeatDirection="Horizontal" Height="80px">
                                     <ItemTemplate>                      
                        
             
		                             <li><a href="buy.aspx?view=<%#DataBinder.Eval(Container.DataItem, "ID")%>"><b><%#DataBinder.Eval(Container.DataItem, "DienGiai")%></b></a></li>
                    		         
	                          
          
                                  </ItemTemplate> 
                                  <FooterTemplate>
                                  </FooterTemplate> 
                         
                            </asp:DataList>
                   
                            
                            </td>
                        </tr>
                    </table>                   
                        
                    </td>
                </tr>
                
                 <tr>
                    <td>
                    <table width=100%>
                        <tr>
                        <td width="197" 
                            valign=center nowrap 
                            background=image/bg_title_left.jpg style="BACKGROUND-REPEAT: repeat-y; height: 20px;">&nbsp; <font 
                              color=Blue><b>&gt;&gt;&gt; Máy tính&lt;&lt;&lt;</b></font></td>                           
                            
                            
                        </tr>
                        <tr>
                            <td>
                                 <asp:DataList ID="Data_maytinh" runat="server" AlternatingItemStyle-VerticalAlign="NotSet" RepeatColumns="1" RepeatDirection="Horizontal" Height="80px">
                                     <ItemTemplate>                      
                        
             
		                             <li><a href="buy.aspx?view=<%#DataBinder.Eval(Container.DataItem, "ID")%>"><b><%#DataBinder.Eval(Container.DataItem, "DienGiai")%></b></a></li>
                    		         
	                          
          
                                  </ItemTemplate> 
                                  <FooterTemplate>
                                  </FooterTemplate> 
                         
                            </asp:DataList>
                   
                            
                            </td>
                        </tr>
                    </table>
                   
                   </td>
                    <td>
                     <table width=100%>
                        <tr>
                        <td width="197" 
                            valign=center nowrap 
                            background=image/bg_title_left.jpg style="BACKGROUND-REPEAT: repeat-y; height: 20px;">&nbsp; <font 
                              color=Blue><b> >>> Đồ trang sức<<<</b></font></td>                           
                            
                            
                        </tr>
                        <tr>
                            <td>
                                 <asp:DataList ID="Data_trangsuc" runat="server" AlternatingItemStyle-VerticalAlign="NotSet" RepeatColumns="1" RepeatDirection="Horizontal" Height="80px">
                                     <ItemTemplate>                      
                        
             
		                             <li><a href="buy.aspx?view=<%#DataBinder.Eval(Container.DataItem, "ID")%>"><b><%#DataBinder.Eval(Container.DataItem, "DienGiai")%></b></a></li>
                    		         
	                          
          
                                  </ItemTemplate> 
                                  <FooterTemplate>
                                  </FooterTemplate> 
                         
                            </asp:DataList>
                   
                            
                            </td>
                        </tr>
                    </table>                   
                        
                    </td>
                </tr>
                 <tr>
                    <td>
                    <table width=100%>
                        <tr>
                        <td width="197" 
                            valign=center nowrap 
                            background=image/bg_title_left.jpg style="BACKGROUND-REPEAT: repeat-y; height: 20px;">&nbsp; <font 
                              color=Blue><b>&gt;&gt;&gt; Bàn ghế&lt;&lt;&lt;</b></font></td>                           
                            
                            
                        </tr>
                        <tr>
                            <td>
                                 <asp:DataList ID="Data_banghe" runat="server" AlternatingItemStyle-VerticalAlign="NotSet" RepeatColumns="1" RepeatDirection="Horizontal" Height="80px">
                                     <ItemTemplate>                      
                        
             
		                             <li><a href="buy.aspx?view=<%#DataBinder.Eval(Container.DataItem, "ID")%>"><b><%#DataBinder.Eval(Container.DataItem, "DienGiai")%></b></a></li>
                    		         
	                          
          
                                  </ItemTemplate> 
                                  <FooterTemplate>
                                  </FooterTemplate> 
                         
                            </asp:DataList>
                   
                            
                            </td>
                        </tr>
                    </table>
                   
                   </td>
                    <td>
                     <table width=100%>
                        <tr>
                        <td width="197" 
                            valign=center nowrap 
                            background=image/bg_title_left.jpg style="BACKGROUND-REPEAT: repeat-y; height: 20px;">&nbsp; <font 
                              color=Blue><b> >>> Mỹ phẩm<<<</b></font></td>                           
                            
                            
                        </tr>
                        <tr>
                            <td>
                                 <asp:DataList ID="Data_mypham" runat="server" AlternatingItemStyle-VerticalAlign="NotSet" RepeatColumns="1" RepeatDirection="Horizontal" Height="80px">
                                     <ItemTemplate>                      
                        
             
		                             <li><a href="buy.aspx?view=<%#DataBinder.Eval(Container.DataItem, "ID")%>"><b><%#DataBinder.Eval(Container.DataItem, "DienGiai")%></b></a></li>
                    		         
	                          
          
                                  </ItemTemplate> 
                                  <FooterTemplate>
                                  </FooterTemplate> 
                         
                            </asp:DataList>
                   
                            
                            </td>
                        </tr>
                    </table>                   
                        
                    </td>
                </tr>
                
                 <tr>
                    <td>
                    <table width=100%>
                        <tr>
                        <td width="197" 
                            valign=center nowrap 
                            background=image/bg_title_left.jpg style="BACKGROUND-REPEAT: repeat-y; height: 20px;">&nbsp; <font 
                              color=Blue><b>&gt;&gt;&gt; Nước giải khát&lt;&lt;&lt;</b></font></td>                           
                            
                            
                        </tr>
                        <tr>
                            <td>
                                 <asp:DataList ID="Data_nuoc" runat="server" AlternatingItemStyle-VerticalAlign="NotSet" RepeatColumns="1" RepeatDirection="Horizontal" Height="80px">
                                     <ItemTemplate>                      
                        
             
		                             <li><a href="buy.aspx?view=<%#DataBinder.Eval(Container.DataItem, "ID")%>"><b><%#DataBinder.Eval(Container.DataItem, "DienGiai")%></b></a></li>
                    		         
	                          
          
                                  </ItemTemplate> 
                                  <FooterTemplate>
                                  </FooterTemplate> 
                         
                            </asp:DataList>
                   
                            
                            </td>
                        </tr>
                    </table>
                   
                   </td>
                    <td>
                     <table width=100%>
                        <tr>
                        <td width="197" 
                            valign=center nowrap 
                            background=image/bg_title_left.jpg style="BACKGROUND-REPEAT: repeat-y; height: 20px;">&nbsp; <font 
                              color=Blue><b> >>> Cặp sách<<<</b></font>
                              
                              </td>                           
                            
                            
                        </tr>
                        <tr>
                            <td>
                                 <asp:DataList ID="Data_capsach" runat="server" AlternatingItemStyle-VerticalAlign="NotSet" RepeatColumns="1" RepeatDirection="Horizontal" Height="80px">
                                     <ItemTemplate>                      
                        
             
		                             <li><a href="buy.aspx?view=<%#DataBinder.Eval(Container.DataItem, "ID")%>"><b><%#DataBinder.Eval(Container.DataItem, "DienGiai")%></b></a></li>
                    		         
	                          
          
                                  </ItemTemplate> 
                                  <FooterTemplate>
                                  </FooterTemplate> 
                         
                            </asp:DataList>
                   
                            
                            </td>
                        </tr>
                    </table>                   
                        
                    </td>
                </tr>
                
                
             </table>
</asp:Content>

